package com.yt.server.common.taglib;

/**
 * @actionscript.class bindable = true
 */
public class AuthenticateException extends Exception {

	public AuthenticateException(int code) {
		this.code = code;
	}

	private static final long serialVersionUID = -5671839451898992439L;

	public static final int NotLogin = 0;

	public static final int LoginFailed = 1;

	public static final int DuplicateUsername = 2;

	public static final int NotFound = 3;

	public static final int RequiredUsernamePasswd = 4;

	public static final int InvalidUserStatus = 5;

	public static final int PasswordNotMatch = 6;

	public static final int SessionNotFoundUser = 7;

	public static final int UserLogined = 8;

	public static final int SessionNotFound = 9;

	private int code = 0;

	public String getCode() {
		return new Integer(code).toString();
	}
}
